import request from '@/utils/request'

//查询日程计划列表
export function getOaList(data) {
    return request({
      url: 'system/schedule/page',
      method: 'get',
      params: data
    })
}

// 添加日程
export function creatDate(data) {
    return request({
      url: '/system/schedule/create',
      method: 'post',
      data: data
    })
}

// 删除
export function delDate(id) {
    return request({
        url: '/system/schedule/delete?id=' + id,
        method: 'delete'
    })
}

//编辑
export function update(data) {
    return request({
      url: '/system/schedule/update',
      method: 'put',
      data: data
    })
}

// 日程管理查询
export function getDateList(data) {
  return request({
    url: '/system/schedule/calendar',
    method: 'post',
    data: data
  })
}

// 稍后提醒
export function getLaterremind(id) {
  return request({
    url: `/system/schedule/laterremind?id=${id}`,
    method: 'get',
  })
}